For information about this method please see ReadBarcode.
public Leadtools.Barcode.BarcodeData ReadBarcode(
Leadtools.RasterImage image,
Leadtools.LeadRect searchBounds,
Leadtools.Barcode.BarcodeSymbology[] symbologies,
Leadtools.Barcode.IBarcodeReadOptions[] options
)
Public Overloads Function ReadBarcode( _
ByVal image As Leadtools.RasterImage, _
ByVal searchBounds As Leadtools.LeadRect, _
ByVal symbologies() As Leadtools.Barcode.BarcodeSymbology, _
ByVal options() As Leadtools.Barcode.IBarcodeReadOptions _
) As Leadtools.Barcode.BarcodeData
public Leadtools.Barcode.BarcodeData ReadBarcode(
Leadtools.RasterImage image,
Leadtools.LeadRect searchBounds,
Leadtools.Barcode.BarcodeSymbology[] symbologies,
Leadtools.Barcode.IBarcodeReadOptions[] options
)
function Leadtools.Barcode.BarcodeReader.ReadBarcode(RasterImage,LeadRect,BarcodeSymbology[],IBarcodeReadOptions[])(
image ,
searchBounds ,
symbologies ,
options
)
public:
Leadtools.Barcode.BarcodeData^ ReadBarcode(
Leadtools.RasterImage^ image,
Leadtools.LeadRect searchBounds,
Leadtools.Barcode.array<BarcodeSymbology>^ symbologies,
Leadtools.Barcode.array<IBarcodeReadOptions^>^ options
)
image
A RasterImage object that contains the image data. Must not be null.
searchBounds
A LeadRect that specifies the region of interest area in the image where the barcode search and detection is performed. You can specify empty rectangle to indicate that the search must be performed on the whole image.
symbologies
An array of BarcodeSymbology enumeration members that specifies the barcode symbologies (types) to search for.
options
An array of IBarcodeReadOptions that specifies the options to use. This can be null, where the current default options is used. Otherwise, the method will use the option that corresponds to the symbologies being read, if the array does not contain specific options for a symbologies being read, then the default version will be used.
An instance of BarcodeData or one of its derived classes that contains the symbology, data, location and any rotation angle of the barcode found. If no barcodes can be found, then this method will return null.
Note: In LEADTOOLS for .NET, the equivalent to LeadRect is LogicalRectangle, also the equivalent to IBarcodeReadOptions is BarcodeReadOptions.
This example shows how to use this method to read any UPC barcode used to identify products from a rotated image.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET